<?php
/**
 *  FriendControl Class
 *
 *  
 *
 *  @author     Vinod Kumar
 *  @version    $Revision: 1.0$
 *  @package    Project Name
 *
 */
class FriendControl extends MainControl {

	private $friendFacade;
	
	/**
     *  __construct
     *
     *  Set up request object & MainPage object
     *
     *  @param  object  request Request object
     */
	function __construct($request) {

		$this->friendFacade = new FriendFacade();
		$this->request = $request;
		$this->mainPage = new MainPage();
	}/* END __construct */

	/**
     *  LoadAllFriend
     *
     *  Load user's scraps
     */
	function LoadAllFriend() {
	    
	    $allFriend = $this->friendFacade->fetchFriendByUserId($userId);
	    //set all friends to request object
	    //call friend list page from 'View'
	}/* END LoadAllFriend */
	
	/**
     *  inviteFriend
     *
     *  Invite friends
     */    
    function inviteFriend() {
        
    }/* END inviteFriend */
    
    
    /**
     *  sendFriendRequest
     *
     *  send friend request to the site users.
     */	
	function sendFriendRequest() {
		
	}/* END sendFriendRequest */
	
	/**
     *  acceptFriend
     *
     *  Accept friend request
     */    
    function acceptFriend() {
        
    }/* END acceptFriend */
    
    /**
     *  delFriend
     *
     *  delete friend from that particular friend list
     */	
	function delFriend() {
		
	}/* END delFriend */
	
}/*END ScrapControl*/
?>